//
//  SecondViewController.h
//  TUMensa
//
//  Created by Martin Poehlmann on 4/7/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "POI.h"
#import "MapView.h"
#import <CoreMotion/CoreMotion.h>

@interface MensaViewController : UIViewController <MKMapViewDelegate, UIAccelerometerDelegate, CLLocationManagerDelegate>{
    NSMutableArray *pois;
    CLLocationManager *mgr;
    IBOutlet MapView *mapView;
    IBOutlet UISegmentedControl *mapType;
    CMMotionManager *cm;
    UIAccelerometer *uia;
    float oldangle;
}

@property (nonatomic, retain) IBOutlet UISegmentedControl *mapType;
@property (retain,nonatomic) IBOutlet MapView* mapView;

- (IBAction) changeType:(id) sender;
- (void) addCanteens ;
- (void)recenterMap;
@end
